ActionController::Routing::Routes.draw do |map|
  map.resources :events, :collection => { :date => :get, :current_month => :get }
  map.resources :users, :comments
  map.resource :session, :collection => { :begin => :post, :complete => :get }

  map.default '', :controller => "events", :action => 'index'
  map.login '/login', :controller => 'session', :action => 'new'
  map.logout '/logout', :controller => 'session', :action => 'destroy'
  map.date '/events/date/:date', :controller => 'events', :action => 'index'
  map.current_month '/current_month', :controller => 'events', :action => 'current_month'
  map.e '/event/show/:title', :controller => 'events', :action => 'show'
  map.month '/events/month/:month', :controller => 'events', :action => 'index'

  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id.:format'
  map.connect ':controller/:action/:id'
end
